package org.despair2D.ui 
{
	import org.despair2D.ui.puppet.TextPuppet;
	
	import org.despair2D.core.ns_despair;
	use namespace ns_despair;
	
	
public class LabelButton extends Button 
{
	
	public function LabelButton( classRef:*, labelContent:String, offsetX:Number = 0, offsetY:Number = 0, embedFonts:Boolean = false ) 
	{
		super(classRef);
		
		var tp:TextPuppet  =  this.createTextPuppet(labelContent, offsetX, offsetY, embedFonts, -1, BUTTON_LABEL)
		tp.interactive     =  false;
		
		tp.move(m_anime.width / 2, m_anime.height / 2)
	}
	
	
	private const BUTTON_LABEL:String = 'buttonLabel'
	
	
	final public function get label() : TextPuppet
	{
		return this.getPuppetByName(BUTTON_LABEL) as TextPuppet
	}
	

	
}

}